<div class="kenhxls index">
<h2><?php __('Danh sách các kênh');?></h2>
<p>
<?php
echo $paginator->counter(array(
'format' => __('Hiện có %count% được đưa vào bảng tạm thành công!!', true)
));
?></p>
<table cellpadding="0" cellspacing="0" id="tables">
<tr>
	<th><?php echo $paginator->sort('id');?></th>
	<th><?php echo $paginator->sort('loaikenh_id');?></th>
	<th><?php echo $paginator->sort('makenh');?></th>
	<th><?php echo $paginator->sort('tenkenh');?></th>
	<th><?php echo $paginator->sort('diachi');?></th>
	<th><?php echo $paginator->sort('sdt');?></th>
	<th><?php echo $paginator->sort('donvi_id');?></th>
	<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($kenhxls as $kenhxl):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $kenhxl['Kenhxl']['id']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Loaikenh']['loaikenh']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['makenh']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['tenkenh']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['diachi']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['sdt']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Donvi']['tendv']; ?>
		</td>
		<td class="actions">
        <?php echo $html->link(__('Delete', true), array('action' => 'delete', $kenhxl['Kenhxl']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $kenhxl['Kenhxl']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
<tr>
<th colspan="8" align="center">
        <?php echo $html->link(__('Lưu vào csdl', true), array('action' => 'luu'));?>
</th>
</tr>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>